﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<List<CollegeWebsite.Models.StudentPreviousInfomation>>" %>
<%@ Import Namespace="CollegeWebsite.Models" %>
<style type="text/css">
    .University { width: 200px; }
    .EnrollmentNo { width: 80px; }
    .Center { width: 80px; }
    .Stream { width: 100px; }
    .Field { width: 100px; }
    .MarksSecured { width: 70px; }
    .OutOfDate { width: 80px; font-weight: normal; }
    .ClassObitained { width: 70px; }
</style>
<table style="width: 100%;">
    <tr>
        <td class="University">
            University
        </td>
        <td class="EnrollmentNo">
            Envirollment No
        </td>
        <td class="Center">
            Center
        </td>
        <td class="Stream">
            Stream
        </td>
        <td class="Field">
            Field
        </td>
        <td class="MarksSecured">
            Mark Secured
        </td>
        <td class="OutOfDate">
            Out of Date
        </td>
        <td class="ClassObitained">
            Class Obitained
        </td>
    </tr>
   
    </table>


     <table id="AjaxContent" rowspan="8">
     <% Html.RenderAction("AnInfo"); %>
    </table>
    


   
    
 

<input id="addMore" type="button" value="AddMore" />
   <script type="text/javascript">
       $(document).ready(function() {
           setTimeout(function() { $('#uniform-RemoveInfo').hide(); }, 200);


           $('#addMore').click(function() {
               $.get('<% =Url.Action("AnInfo","StudentPreviousInfomation") %>',
                function(data) {
                    $('#AjaxContent').append(data).show('slow');

                    var i = 0;
                    $('.OutOfDate').each(function() {
                        $(this).attr('id', i.toString());
                        $('#' + i.toString()).datepicker();
                        i++;
                    });
                });


           });



       })
    
    
    </script>